import 'package:flutter/cupertino.dart';

class PeiwanItem extends StatelessWidget {
  final String itemName;
  final Image icon;

  const PeiwanItem({super.key, required this.itemName, required this.icon});

  @override
  Widget build(BuildContext context) {
    return Container(
      child: Column(
        mainAxisSize: MainAxisSize.min,
        mainAxisAlignment: MainAxisAlignment.spaceEvenly,
        children: [
          icon,
          Text(
            itemName,
            style: TextStyle(fontSize: 8),
          )
        ],
      ),
    );
  }
}
